class PingerController < ApplicationController
  #require 'benchmark'
  
  def index
    @login_time = Benchmark.measure {
      @user = User.new("YOUR-ADOBEID_EMAIL","YOUR_PASSWORD")
      @share = Share.new(@user)  
      @share.get_authorization_token
      @user.share = @share
    }
    if (@user.share.http_response_code == "200")
      flash[:notice] = "Login took: #{@login_time.real} seconds."
    else
      render_text "Server is down #{@user.share.http_response_code}", "#{@user.share.http_response_code} #{@user.share.http_response_message}"
    end
  end
    
end
